import request from '@/utils/request'

export default {
  getCartList() {
    return request.get('/cart/list')
  },
  addToCart(data) {
    return request.post('/cart/add', data)
  },
  updateCartItem(data) {
    return request.put('/cart/update', data)
  },
  deleteCartItem(id) {
    return request.delete(`/cart/delete/${id}`)
  }
}